#include <stdio.h>
#include <stdlib.h>
#include <csp_spu.h>
#include <csp_debug.h>

int global_pid;


int Run(){
	int pid = csp_pid();

	global_pid = csp_pid();

	printf("Hi, I'm printf_yield_task with pid %i. I yield...\n", pid);

	csp_yield();
	
	printf("..and then I printf's again with pid %i!\n", pid);

	ASSERT( pid == csp_pid() );
	ASSERT( global_pid == csp_pid() );

	return 0;
}
